<template>
    <div>
        <van-nav-bar title="首页" />
        <search></search>
        <lb :images="images" imagewidth="100%" imageheight="200px"></lb>
        <div v-show="djs">
            <p>京东秒杀</p>
            <van-count-down :time="time" @click="onFinish"/>
        </div>



    </div>
</template>

<script setup>
import { ref } from 'vue';
import lb from '@/components/lb.vue';
import search from '@/components/search.vue';
const images = [
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-1.jpeg',
    'https://fastly.jsdelivr.net/npm/@vant/assets/apple-2.jpeg',
];
const time = ref(30 * 1000);
let djs=ref(true)
const onFinish=()=>{
    djs.value=false

}


</script>

<style lang="scss" scoped></style>